package cn.net.isir.entity;

import com.github.pagehelper.PageInfo;
import cn.net.isir.core.BasicModel;
import cn.net.isir.core.InsertRequired;

import java.util.Date;
import java.util.List;

public class Category extends BasicModel {
    /**
     * 所属店铺id
     */
    @InsertRequired
    private String shopId;
    /**
     * 所属店铺名称
     */
    private String shopName;
    /**
     * 品类名称
     */
    private String name;
    /**
     * 展示方式：list/grid
     */
    private String showStyle;
    /**
     * 顺序
     */
    private Integer sort;
    /**
     * 状态
     */
    private String status;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新人
     */
    private String updateUser;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 备注
     */
    private String comment;
    /**
     * 是否可用:0表示不可用，1表示可用
     */
    private Integer isValid;

    /**
     * 商品列表,用于返回小程序的时候组织数据
     */
//    private List<Goods> goodsList;

    /**
     * 商品列表,用于返回小程序的时候组织数据
     */
    private PageInfo<Goods> goodsPage;

    public PageInfo<Goods> getGoodsPage() {
        return goodsPage;
    }

    public void setGoodsPage(PageInfo<Goods> goodsPage) {
        this.goodsPage = goodsPage;
    }

//    public List<Goods> getGoodsList() {
//        return goodsList;
//    }
//
//    public void setGoodsList(List<Goods> goodsList) {
//        this.goodsList = goodsList;
//    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getShowStyle() {
        return showStyle;
    }

    public void setShowStyle(String showStyle) {
        this.showStyle = showStyle;
    }


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }


    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }


    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

}
